<template>
	<div>
		<button @click="getStudents">点我获取学生列表</button>
		<button @click="getCars">点我获取汽车列表</button>
	</div>
</template>

<script>
	import axios from 'axios'
	export default {
		name:'App',
		methods:{
			async getStudents(){
				let x = await axios.get('http://localhost:8080/peiqi/students')
				console.log(x.data)
			},
			async getCars(){
				let x = await axios.get('http://localhost:8080/shuo/cars')
				console.log(x.data)
			}
		}
	}
</script>
